#pragma once
#include"Hash_2.h"
namespace dj
{

	template<class K>
	class unorderedSet
	{
		struct SetKeyOfT
		{
			const K& operator()(const K&date)
			{
				return date;
			}
		};
	public:
		typedef typename dj::Hash_2<K, K, SetKeyOfT>::const_iterator iterator;
		typedef typename dj::Hash_2<K, K, SetKeyOfT>::const_iterator const_iterator;
		pair<iterator,bool> insert(const K& key)
		{
			return _hash.insert(key);
		}
		iterator begin()const
		{
			return _hash.begin();
		}
		iterator end()const
		{
			return _hash.end();
		}

	private:
		dj::Hash_2<K, K,SetKeyOfT>_hash;
	};
}
